home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / source / rleapp / makefile < prev    next >
Encoding:
Makefile  |  1992-09-12  |  2.2 KB  |  99 lines

  1. ############################################################################
  2. #
  3. # RLE Sample Application. Multimedia Systems Group
  4. #
  5. #     (C) Copyright Microsoft Corp. 1991, 1992.  All rights reserved.
  6. #
  7. #     You have a royalty-free right to use, modify, reproduce and 
  8. #     distribute the Sample Files (and/or any modified version) in 
  9. #     any way you find useful, provided that you agree that 
  10. #     Microsoft has no warranty obligations or liability for any 
  11. #     Sample Application Files which are modified. 
  12. #     
  13. #     If you did not get this from Microsoft Sources, then it may not be the
  14. #     most current version.  This sample code in particular will be updated
  15. #     and include more documentation.  
  16. #
  17. #     Sources are:
  18. #         The MM Sys BBS: The phone number is 206 936-4082.
  19. #    CompuServe: WINSDK forum, MDK section.
  20. #
  21. ############################################################################
  22.  
  23. !if "$(DEBUG)" == "NO"
  24. DEF=
  25. LOPT=
  26. COPT=
  27. MOPT=
  28. !else
  29. DEF=-DDEBUG
  30. LOPT=/CO
  31. COPT=-Zi
  32. MOPT=-Zi
  33. !endif
  34.  
  35. CC   = cl -c -W3 -AM -G2sw -Zp -Ows $(COPT) -nologo $(DEF) -I.
  36. MASM = masm -Mx -t -D?QUIET $(MOPT)
  37. LINK = link $(LOPT)/NOE/NOD/LI/MAP/NOPACKCODE/AL:16
  38. RC   = rc $(DEF)
  39.  
  40. NAME= rleapp
  41. EXENAME = rle
  42.  
  43. OBJ1    = rleapp.obj rlefile.obj rle.obj rledlg.obj df.obj rlea.obj
  44. OBJ2    = dib.obj mem.obj 
  45. OBJ3    = 
  46. OBJ     = $(OBJ1) $(OBJ2) $(OBJ3)
  47. LIBS    = libw mlibcew commdlg mmsystem
  48.  
  49. .c.obj:
  50.     $(CC) $*.c
  51.  
  52. .asm.obj:
  53.     $(MASM) $*.asm;
  54.  
  55. goal: $(EXENAME).exe
  56. # $(EXENAME).hlp
  57.  
  58. $(EXENAME).hlp: help/*.rtf help/*.bmp help/*.hpj
  59.     cd help
  60.     hc $(EXENAME)
  61.     copy $(EXENAME).hlp ..
  62.     cd ..
  63.  
  64. $(EXENAME).exe: $(OBJ) $(NAME).res $(NAME).def makefile
  65.     $(LINK) @<<
  66. +
  67. $(OBJ1) +
  68. $(OBJ2) +
  69. $(OBJ3),
  70. $(EXENAME),
  71. $(EXENAME),
  72. $(LIBS),
  73. $(NAME).def
  74. <<
  75. #    $(RC) -30 -t $(NAME).res $(EXENAME).exe
  76.     $(RC)     -t $(NAME).res $(EXENAME).exe
  77.     cvpack -p $(EXENAME).exe
  78.     mapsym /n $(EXENAME).map
  79.  
  80. $(NAME).res: *.dlg $(NAME).rc rleapp.h rleapp.ico
  81.     $(RC) -r $(NAME).rc
  82.  
  83. rleapp.c: rleapp.h rle.h gmem.h dib.h
  84.  
  85. rle.c: gmem.h rle.h dib.h 
  86.  
  87. dib.c: dib.h gmem.h
  88.  
  89. rledlg.c: rleapp.h dib.h rle.h
  90.  
  91. rlefile.c: rleapp.h rle.h gmem.h dib.h
  92.  
  93. clean:
  94.     del $(EXENAME).exe
  95.     del *.res
  96.     del *.obj
  97.     del *.map
  98.     del *.sym
  99.